﻿@model VehicleManagement.Models.Approval
@{
    ViewBag.Title = "Details";
}
<h2>
</h2>
<link rel="stylesheet" href="@Url.Content("~/Content/css/page_zlb_c_e_d.css")" type="text/css"/>
@Html.Partial("_PartviewDrivermanageNav")
<div class="content bc">
    <div class="content_link_warn f12">
        你当前的位置：审批申请记录&gt&gt &nbsp;&nbsp;查看申请记录&gt&gt &nbsp;&nbsp;审批详细信息
    </div>
    <div class="content_right fr" id="rightcontent">
        <fieldset>
            @*<legend></legend>*@
            <div class="OutTitle">
                <span>查看审批信息</span></div>
            <div class="Box">
                           <div class="SubBox1 mt5 ml15 mr15">
                    <div class="SubTitle">
                        申请基本信息</div>
                    <div class="SubBox-container">
                        <div class="text-wrap">
                            <div class="text-l">
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.apply.ApplicantName):</span>
                                    <span class="length length150">@Html.DisplayFor(model => model.apply.ApplicantName)</span>
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.apply.CarType):</span>
                                    <span class="length length150">@Html.DisplayFor(model => model.apply.CarType)</span>
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.apply.CarUse):</span>
                                    <span class="length length150">@Html.DisplayFor(model => model.apply.CarUse)</span>
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="text-l mt15">
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.apply.Beginning):</span>
                                    <span class="length length150">@Html.DisplayFor(model => model.apply.Beginning)</span>
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="withValidate">
                                    <span class="spanType1">@Html.LabelFor(model => model.apply.Destination):</span>
                                    <span class="length length150">@Html.DisplayFor(model => model.apply.Destination)</span>
                                </div>
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.apply.ApplyTime):</span>
                                    <span class="length length150">@String.Format("{0:g}", Model.apply.ApplyTime)</span>
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="padding">
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="text-l mt15">
                                    <span class="spanType1">@Html.LabelFor(model => model.apply.Remark):</span>
                                    @Html.DisplayFor(model => model.apply.Remark)
                                </div>
                                <div class="clear"></div>
                            <div class="pt20"></div>
                        </div>
                    </div>
                    </div>
                <div class="SubBox12 mt5 ml15 mr15 mb5">
                    <div class="SubTitle">
                        审批基本信息</div>
                    <div class="SubBox-container">
                        <div class="text-wrap">
                            <div class="text-l mt15">
                                @Html.HiddenFor(model => model.ApprovalID)
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.ApplyState):</span>
                                    @*<span class="length length150">@Html.DisplayFor(model => model.ApplyState)</span>*@
                                    @if (!Model.ApplyState)
                                    {
                                        <span class="length length150">还未批准</span>
                                    }
                                    else if (Model.ApplyState)
                                    { 
                                        <span class="length length150">已经批准</span>
                                    }
                                    <div class="special-validate">
                                    </div>
                                </div>
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.Reason):</span>
                                    @*<span class="length length150">@Html.DisplayFor(model => model.Reason)</span>*@
                                     @if (!Model.ApplyState && string.IsNullOrEmpty(Model.Reason))
                                    {
                                        <span class="length length150">无</span>
                                    }
                                     else if (Model.ApplyState)
                                     { 
                                        <span class="length length150">已经批准</span>
                                     }
                                     else
                                     { 
                                         <span class="length length150">@Html.DisplayFor(model => model.Reason)</span>
                                     }
                                    <div class="validate">
                                    </div>
                                </div>
                                @*<div class="withValidate">
                                    <span>@Html.LabelFor(model => model.DriverID):</span>
                                    @Html.DisplayFor(model => model.DriverID)
                                    <div class="validate">
                                    </div>
                                </div>*@
                                <div class="clear"></div>
                            </div>
                            <div class="text-l mt15">
                                @*<div class="withValidate">
                                    <span>@Html.LabelFor(model => model.CarID):</span>
                                    @Html.DisplayFor(model => model.CarID)
                                    <div class="validate">
                                    </div>
                                </div>*@
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.CarNumber):</span>
                                    <span class="length length150">@Html.DisplayFor(model => model.CarNumber)</span>
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.DriverName):</span>
                                    <span class="length length150">@Html.DisplayFor(model => model.DriverName)</span>
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="clear"></div>
                            </div>
                            @*<div class="text-l mt15">
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.DriverID):</span>
                                    @Html.DisplayFor(model => model.DriverID)
                                    <div class="validate">
                                    </div>
                                </div>
                                
                                <div class="clear"></div>
                            </div>*@
                             <div class="text-l mt15">
                                <div class="withValidate">
                                    <span>@Html.LabelFor(model => model.Priority):</span>
                                    @*@Html.DisplayFor(model => model.Priority)*@
                                    @if (Model.Priority == 0)
                                    {
                                        <span class="length length150">一般</span>
                                    }
                                    else if (Model.Priority == 1)
                                    { 
                                        <span class="length length150">较紧急</span>
                                    }
                                    else if (Model.Priority == 2)
                                    { 
                                        <span class="length length150">十分紧急</span>
                                    }
                                    <div class="validate">
                                    </div>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="text-l mt15">
                                    <span class="spanType1">@Html.LabelFor(model => model.Remark):</span>
                                    @Html.DisplayFor(model => model.Remark)
                            </div>
                            <div class="pt20"></div>
                        </div>
                    </div>
                </div>
               
            </div>
            <div class="button-wrap button-wrap2">
                <div class="a-back backEdit">
                    <div class="divINa-back">@Html.ActionLink("查看路线", "../Track/Details/3")</div>
                </div>
                <div class="a-back backEdit">
                    <div class="divINbackEdit">@Html.ActionLink("审批申请", "Edit", new { id = Model.ApprovalID })</div>
                </div>
                <div class="a-back mr15">
                    <div class="divINa-back">@Html.ActionLink("返回", "../Apply/Index")</div>
                </div>
            </div>
        </fieldset>
    </div>
    @Html.Partial("_PartviewApprovalLeftbar")
    <div class="content_contract fl">
        <a href="javascript:void(0)" class="btn_contract w8h32" id="contract" title="收缩">
        </a><a href="javascript:void(0)" class="btn_expand w8h32" id="expand" title="展开">
        </a>
    </div>
    <div class="cb">
    </div>
</div>
